<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Validation 表单验证 - Easy Frame</title>
    <meta name="description" content="Updates and statistics">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link href="/assets/plugins/custom/bootstrap-daterangepicker/bootstrap-daterangepicker.bundle.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/plugins/custom/bootstrap-timepicker/bootstrap-timepicker.bundle.css" rel="stylesheet" type="text/css"/>
    <!--str:::全局css -->
    <link href="/assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/css/demo1/style.bundle.css" rel="stylesheet" type="text/css"/>
    <!--end::全局css -->

    <link rel="shortcut icon" href="/assets/media/logos/favicon.ico"/>
</head>
<body class="e-page--loading">
<div class="e-content">
    <div class="row">
        <div class="col">
            <div class="alert alert-light alert-elevate fade show" role="alert">
                <div class="alert-icon"><i class="flaticon-warning e-font-brand"></i></div>
                <div class="alert-text">
                    基于<code>jQuery Validate</code>插件
                    <a class="e-link e-font-bold" href="https://jqueryvalidation.org/documentation/" target="_blank">官方文档</a>
                    <a class="e-link e-font-bold" href="https://github.com/jquery-validation/jquery-validation" target="_blank">Github</a>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md">
            <form class="e-form">
                <div class="card">
                    <div class="card-head">
                        <div class="card-head-label">
                            <h3 class="card-head-title">
                                基础
                            </h3>
                        </div>
                    </div>
                    <div class="card-body">

                        <div class="form-group row">
                            <label class="col-form-label col-2" for="example-text">
                                <span class="required">*</span>
                                文本框：
                            </label>
                            <div class="col-10">
                                <input type="text" class="form-control" name="example-text" required id="example-text">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-2" for="example-password">
                                <span class="required">*</span>
                                密码框：
                            </label>
                            <div class="col-10">
                                <input type="password" class="form-control" required name="example-password" id="example-password">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-2" for="example-select">
                                <span class="required">*</span>
                                下拉框：
                            </label>
                            <div class="col-10">
                                <select class="form-control" required name="example-select" id="example-select">
                                    <option value="">&nbsp;</option>
                                    <option value="1">选项1</option>
                                    <option value="2">选项2</option>
                                    <option value="3">选项3</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-2" for="example-select-multiple">
                                <span class="required">*</span>
                                多选下拉框：
                            </label>
                            <div class="col-10">
                                <select class="form-control" required name="example-select-multiple" id="example-select-multiple" multiple>
                                    <option value="1">选项1</option>
                                    <option value="2">选项2</option>
                                    <option value="3">选项3</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-2">
                                <span class="required">*</span>
                                Radio：
                            </label>
                            <div class="col-10">
                                <div class="e-radio-inline">
                                    <label class="e-radio">
                                        <input type="radio" name="radio-horizontal" value="0" required> 选项 1
                                        <span></span>
                                    </label>
                                    <label class="e-radio">
                                        <input type="radio" name="radio-horizontal" value="1"> 选项 2
                                        <span></span>
                                    </label>
                                    <label class="e-radio">
                                        <input type="radio" name="radio-horizontal" value="2"> 选项 3
                                        <span></span>
                                    </label>
                                </div>
                                <span class="form-text text-muted">请至少选择1项</span>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-2">
                                <span class="required">*</span>
                                Checkbox：
                            </label>
                            <div class="col-10">
                                <div class="e-checkbox-inline">
                                    <label class="e-checkbox">
                                        <input type="checkbox" name="checkbox-horizontal" value="0" required> 选项 1
                                        <span></span>
                                    </label>
                                    <label class="e-checkbox">
                                        <input type="checkbox" name="checkbox-horizontal" value="1"> 选项 2
                                        <span></span>
                                    </label>
                                    <label class="e-checkbox">
                                        <input type="checkbox" name="checkbox-horizontal" value="2"> 选项 3
                                        <span></span>
                                    </label>
                                </div>
                                <span class="form-text text-muted">请至少选择1项</span>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-form-label col-2" for="example-textarea">
                                <span class="required">*</span>
                                文本域：
                            </label>
                            <div class="col-10">
                                <textarea name="example-textarea" id="example-textarea" required class="form-control"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="card-foot text-center">
                        <button type="button" class="btn btn-success" onclick="validation.validation(this)">提交</button>
                        <button type="button" class="btn btn-secondary">取消</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md">
            <form class="e-form">
                <div class="card">
                    <div class="card-head">
                        <div class="card-head-label">
                            <h3 class="card-head-title">
                                插件
                            </h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="form-group row">
                            <label class="col-form-label col-3" for="example-bootstrap-select">
                                <span class="required">*</span>
                                DateTime Picker：
                            </label>
                            <div class="col-9">
                                <input type="text" class="form-control date-picker" name="date-time-picker" required readonly/>
                            </div>
                        </div>
                        <div class="e-section-content">
                            <div class="form-group row">
                                <label class="col-form-label col-3">
                                    <span class="required">*</span>
                                    Time Picker：
                                </label>
                                <div class="col-9">
                                    <input type="text" class="form-control time-picker" name="time-picker" required readonly/>
                                </div>
                            </div>
                        </div>
                        <div class="e-section-content">
                            <div class="form-group row">
                                <label class="col-form-label col-3">
                                    <span class="required">*</span>
                                    Date Range Picker：
                                </label>
                                <div class="col-9">
                                    <input type="text" class="form-control date-range-picker" required readonly/>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-3" for="example-bootstrap-select">
                                <span class="required">*</span>
                                Bootstrap Select：
                            </label>
                            <div class="col-9">
                                <select class="form-control select-picker" required name="example-select" id="example-bootstrap-select">
                                    <option value="">&nbsp;</option>
                                    <option value="1">选项1</option>
                                    <option value="2">选项2</option>
                                    <option value="3">选项3</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-form-label col-3" for="example-bootstrap-select-multiple">
                                <span class="required">*</span>
                                Bootstrap Select：
                            </label>
                            <div class="col-9">
                                <select class="form-control select-picker" required name="example-select-multiple" id="example-bootstrap-select-multiple" multiple minlength="2" maxlength="3">
                                    <option value="1">选项1</option>
                                    <option value="2">选项2</option>
                                    <option value="3">选项3</option>
                                    <option value="4">选项4</option>
                                    <option value="5">选项5</option>
                                </select>
                                <span class="form-text text-muted">多选，最少选择2个最多选择3个</span>
                            </div>
                        </div>

                    </div>
                    <div class="card-foot text-center">
                        <button type="button" class="btn btn-success" onclick="validation.validation(this)">提交</button>
                        <button type="button" class="btn btn-secondary">取消</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!--str:: 全局js -->
<script src="/assets/plugins/global/plugins.bundle.js"></script>
<script src="/assets/js/demo1/scripts.bundle.js"></script>
<!--end:: 全局js -->
<script src="/assets/plugins/custom/bootstrap-timepicker/bootstrap-timepicker.bundle.js"></script>
<script src="/assets/plugins/custom/bootstrap-daterangepicker/bootstrap-daterangepicker.bundle.js"></script>
<script src="/assets/js/demo1/pages/form/validation/base.js"></script>
</body>
</html>